<% computer_id = "computer_#{computer.id}" %>
<ul id=<%= computer_id %> class="computerList">
	<% if computer.status == 0 %> 
		<%= image_tag("circle_Red.png")%>
	<% end %>	
	<% if computer.status == 1 %> 
		<%= image_tag("circle_Green.png")%>
	<% end %>	
	<% if computer.status == 2 %> 
		<%= image_tag("circle_Orange.png")%>
	<% end %>	
	<% if computer.ip_address == "" %>
		No IP
	<% else %>
		<%=h computer.ip_address %>
	<% end %> 
	: <%=h computer.name%>
	<%= link_to_function("<span class='ui-icon ui-icon-search'></span>View", :class => 'ui-state-default ui-corner-all dialog_link roomButton fastForm_link') do |page|
		page.hide "remote_computer"
		page.hide "remote_company"
		page.hide "remote_room"
		page.hide "remote_network"
		page.show "show"
     	page.replace_html 'show', :partial => 'computers/show', :locals => {:computer => computer}
	end%>
	<br/>
</ul>
<%= draggable_element(computer_id, :revert=>true) %>
